<?php


namespace app\api\controller;


use app\api\logic\RechargeLogic;
use app\common\controller\BaseApiController;

/**
 * 用户余额充值
 * Class RechargeController
 * @package app\api\controller
 */
class RechargeController extends BaseApiController
{
    protected function init()
    {
        parent::init();
        $this->logic = new RechargeLogic();
    }

    /**
     * 充值订单
     */
    public function recharge()
    {
        $this->logic->addRechargeOrder(input());
        return $this->success();
    }
}